package com.yuyu.commons.annotation;

import java.lang.annotation.*;

@Inherited
@Documented
@Target({ElementType.FIELD,ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface AccessLimit {

    //固定时间内能访问的次数
    int limit() default 5;

    //规定时间内
    int second() default 1;
}
